Searched refs:shouldThrow (Results 1 - 25 of 46) sorted by relevance

12

/macosx-10.10/JavaScriptCore-7600.1.17/tests/stress/
H A Dthrow-through-optimized-code.js5 var shouldThrow = false; variable
7 if (shouldThrow)
23 shouldThrow = true;
H A Dget-by-id-throw-from-getter-through-optimized-code.js7 var shouldThrow = false; variable
12 if (shouldThrow)
30 shouldThrow = true;
H A Druntime-throw-through-optimized-code.js5 var shouldThrow = false; variable
7 if (shouldThrow)
26 shouldThrow = true;
/macosx-10.10/JavaScriptCore-7600.1.17/API/tests/
H A Dtestapi.js57 function shouldThrow(a) function
170 shouldThrow("new MyBadConstructor()");
174 shouldThrow("MyObject.nullCall()");
175 shouldThrow("MyObject.hasPropertyLie");
247 shouldThrow("undefined instanceof EvilExceptionObject");
252 shouldThrow("EvilExceptionObject*5");
254 shouldThrow("String(EvilExceptionObject)");
269 shouldThrow("PropertyCatchalls[make_throw]=1");
271 shouldThrow("PropertyCatchalls[make_throw]=1");
/macosx-10.10/JavaScriptCore-7600.1.17/runtime/
H A DSparseArrayValueMap.cpp89 void SparseArrayValueMap::putEntry(ExecState* exec, JSObject* array, unsigned i, JSValue value, bool shouldThrow) argument
99 if (shouldThrow)
104 entry.put(exec, array, this, value, shouldThrow);
154 void SparseArrayEntry::put(ExecState* exec, JSValue thisValue, SparseArrayValueMap* map, JSValue value, bool shouldThrow) argument
158 if (shouldThrow)
167 callSetter(exec, thisValue, Base::get(), value, shouldThrow ? StrictMode : NotStrictMode);
H A DRegExpObject.h51 void setLastIndex(ExecState* exec, JSValue lastIndex, bool shouldThrow) argument
55 else if (shouldThrow)
87 JS_EXPORT_PRIVATE static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DJSProxy.cpp91 void JSProxy::putByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, JSValue value, bool shouldThrow) argument
94 thisObject->target()->methodTable(exec->vm())->putByIndex(thisObject->target(), exec, propertyName, value, shouldThrow);
97 bool JSProxy::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
100 return thisObject->target()->methodTable(exec->vm())->defineOwnProperty(thisObject->target(), exec, propertyName, descriptor, shouldThrow);
H A DRegExpMatchesArray.h94 static void putByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, JSValue v, bool shouldThrow) argument
98 JSArray::putByIndex(thisObject, exec, propertyName, v, shouldThrow);
122 static bool defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
126 return JSArray::defineOwnProperty(object, exec, propertyName, descriptor, shouldThrow);
H A DRegExpObject.cpp131 bool RegExpObject::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
136 return reject(exec, shouldThrow, "Attempting to change configurable attribute of unconfigurable property.");
138 return reject(exec, shouldThrow, "Attempting to change enumerable attribute of unconfigurable property.");
140 return reject(exec, shouldThrow, "Attempting to change access mechanism for an unconfigurable property.");
143 return reject(exec, shouldThrow, "Attempting to change writable attribute of unconfigurable property.");
145 return reject(exec, shouldThrow, "Attempting to change value of a readonly property.");
155 return Base::defineOwnProperty(object, exec, propertyName, descriptor, shouldThrow);
H A DJSArrayBuffer.cpp97 const PropertyDescriptor& descriptor, bool shouldThrow)
102 return reject(exec, shouldThrow, "Attempting to define read-only array buffer property.");
104 return Base::defineOwnProperty(thisObject, exec, propertyName, descriptor, shouldThrow);
95 defineOwnProperty( JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
H A DJSProxy.h81 JS_EXPORT_PRIVATE static void putByIndex(JSCell*, ExecState*, unsigned, JSValue, bool shouldThrow);
86 JS_EXPORT_PRIVATE static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DSparseArrayValueMap.h48 void put(ExecState*, JSValue thisValue, SparseArrayValueMap*, JSValue, bool shouldThrow);
112 void putEntry(ExecState*, JSObject*, unsigned, JSValue, bool shouldThrow);
H A DStringObject.h52 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow);
57 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DJSArrayBuffer.h54 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DJSNotAnObject.h75 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow);
H A DJSCJSValue.cpp179 void JSValue::putToPrimitiveByIndex(ExecState* exec, unsigned propertyName, JSValue value, bool shouldThrow) argument
182 PutPropertySlot slot(*this, shouldThrow);
187 if (synthesizePrototype(exec)->attemptToInterceptPutByIndexOnHoleForPrototype(exec, *this, propertyName, value, shouldThrow))
190 if (shouldThrow)
H A DJSArrayBufferView.cpp175 const PropertyDescriptor& descriptor, bool shouldThrow)
181 return reject(exec, shouldThrow, "Attempting to define read-only typed array property.");
183 return Base::defineOwnProperty(thisObject, exec, propertyName, descriptor, shouldThrow);
173 defineOwnProperty( JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
H A DJSCell.cpp107 void JSCell::putByIndex(JSCell* cell, ExecState* exec, unsigned identifier, JSValue value, bool shouldThrow) argument
110 PutPropertySlot slot(cell, shouldThrow);
115 thisObject->methodTable(exec->vm())->putByIndex(thisObject, exec, identifier, value, shouldThrow);
H A DStringObject.cpp73 void StringObject::putByIndex(JSCell* cell, ExecState* exec, unsigned propertyName, JSValue value, bool shouldThrow) argument
77 if (shouldThrow)
81 JSObject::putByIndex(cell, exec, propertyName, value, shouldThrow);
H A DJSArrayBufferView.h150 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DJSCell.h137 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow);
214 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
H A DJSGenericTypedArrayView.h236 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
240 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow);
/macosx-10.10/JavaScriptCore-7600.1.17/debugger/
H A DDebuggerActivation.cpp92 bool DebuggerActivation::defineOwnProperty(JSObject* object, ExecState* exec, PropertyName propertyName, const PropertyDescriptor& descriptor, bool shouldThrow) argument
95 return thisObject->m_activation->methodTable()->defineOwnProperty(thisObject->m_activation.get(), exec, propertyName, descriptor, shouldThrow);
H A DDebuggerActivation.h50 static bool defineOwnProperty(JSObject*, ExecState*, PropertyName, const PropertyDescriptor&, bool shouldThrow);
/macosx-10.10/WebCore-7600.1.25/bridge/
H A Druntime_array.h59 static void putByIndex(JSCell*, ExecState*, unsigned propertyName, JSValue, bool shouldThrow);

Completed in 254 milliseconds

12