Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
added review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak committed Jul 7, 2016
1 parent 793f508 commit ef75ffa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/chakrashim/src/v8booleanobject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Local<Value> BooleanObject::New(Isolate* isolate, bool value) {
return Local<BooleanObject>::New(newBooleanObjectRef);
}

Local<Value> BooleanObject::New(bool value) {
return New(IsolateShim::GetCurrentAsIsolate(), value);
}

BooleanObject *BooleanObject::Cast(v8::Value *obj) {
CHAKRA_ASSERT(obj->IsBooleanObject());
return static_cast<BooleanObject*>(obj);
Expand Down

0 comments on commit ef75ffa

Please sign in to comment.