Index: src/execution.h |
diff --git a/src/execution.h b/src/execution.h |
index 51fe3d32c00ff8f51902c917c52241c28e918e91..75f7a8ebc9bc8331b32175f9fb6aff3a7e874b13 100644 |
--- a/src/execution.h |
+++ b/src/execution.h |
@@ -19,16 +19,23 @@ |
class Execution final : public AllStatic { |
public: |
// Call a function, the caller supplies a receiver and an array |
- // of arguments. |
- // |
- // When the function called is not in strict mode, receiver is |
- // converted to an object. |
- // |
- MUST_USE_RESULT static MaybeHandle<Object> Call(Isolate* isolate, |
- Handle<Object> callable, |
- Handle<Object> receiver, |
- int argc, |
- Handle<Object> argv[]); |
+ // of arguments. Arguments are Object* type. After function returns, |
+ // pointers in 'args' might be invalid. |
+ // |
+ // *pending_exception tells whether the invoke resulted in |
+ // a pending exception. |
+ // |
+ // When convert_receiver is set, and the receiver is not an object, |
+ // and the function called is not in strict mode, receiver is converted to |
+ // an object. |
+ // |
+ MUST_USE_RESULT static MaybeHandle<Object> Call( |
+ Isolate* isolate, |
+ Handle<Object> callable, |
+ Handle<Object> receiver, |
+ int argc, |
+ Handle<Object> argv[], |
+ bool convert_receiver = false); |
// Construct object from function, the caller supplies an array of |
// arguments. Arguments are Object* type. After function returns, |