Changeset 167313 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Apr 15, 2014, 10:46:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r167199 r167313 27 27 28 28 #include "CallFrame.h" 29 #include "GetterSetter.h"30 29 #include "Interpreter.h" 31 30 #include "JSFunction.h" … … 814 813 } 815 814 816 817 EncodedJSValue JSC_HOST_CALL globalFuncSetTypeErrorAccessor(ExecState* exec)818 {819 JSObject* target = jsDynamicCast<JSObject*>(exec->argument(0));820 JSValue propertyName = exec->argument(1);821 822 // Setting __proto__ of a primitive should have no effect.823 if (!target || !propertyName.isString())824 return JSValue::encode(jsUndefined());825 VM& vm = exec->vm();826 Identifier property(exec, asString(propertyName)->getString(exec));827 target->putDirectNonIndexAccessor(vm, vm.propertyNames->arguments, target->globalObject()->throwTypeErrorGetterSetter(vm), DontDelete | DontEnum | Accessor);828 return JSValue::encode(jsUndefined());829 }830 831 815 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.