diff options
Diffstat (limited to 'js/src/jsobj.h')
-rw-r--r-- | js/src/jsobj.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/js/src/jsobj.h b/js/src/jsobj.h index 49047192ed..a53667d251 100644 --- a/js/src/jsobj.h +++ b/js/src/jsobj.h @@ -179,11 +179,9 @@ class JSObject : public js::gc::Cell * Make a non-array object with the specified initial state. This method * takes ownership of any extantSlots it is passed. */ - static inline JSObject* create(js::ExclusiveContext* cx, - js::gc::AllocKind kind, - js::gc::InitialHeap heap, - js::HandleShape shape, - js::HandleObjectGroup group); + static inline JS::Result<JSObject*, JS::OOM&> + create(js::ExclusiveContext* cx, js::gc::AllocKind kind, js::gc::InitialHeap heap, + js::HandleShape shape, js::HandleObjectGroup group); // Set the initial slots and elements of an object. These pointers are only // valid for native objects, but during initialization are set for all @@ -1173,7 +1171,7 @@ ToPropertyDescriptor(JSContext* cx, HandleValue descval, bool checkAccessors, * callable. This performs exactly the checks omitted by ToPropertyDescriptor * when checkAccessors is false. */ -bool +Result<> CheckPropertyDescriptorAccessors(JSContext* cx, Handle<JS::PropertyDescriptor> desc); void |