Changeset 173600 in webkit for trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
- Timestamp:
- Sep 12, 2014, 10:21:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSFunction.cpp
r173541 r173600 290 290 291 291 // See ES5.1 15.3.5.4 - Function.caller may not be used to retrieve a strict caller. 292 if (!caller.isObject() || !asObject(caller)->inherits(JSFunction::info())) 292 if (!caller.isObject() || !asObject(caller)->inherits(JSFunction::info())) { 293 // It isn't a JSFunction, but if it is a JSCallee from a program or call eval, return null. 294 if (jsDynamicCast<JSCallee*>(caller)) 295 return JSValue::encode(jsNull()); 293 296 return JSValue::encode(caller); 297 } 294 298 JSFunction* function = jsCast<JSFunction*>(caller); 295 299 if (function->isHostOrBuiltinFunction() || !function->jsExecutable()->isStrictMode())
Note:
See TracChangeset
for help on using the changeset viewer.