зеркало из https://github.com/mozilla/gecko-dev.git
b0da40da16
where any occurrence of arguments.length or arguments[0], e.g., would be "optimized" to use those bytecodes. This is just wrong if the occurrence is an operand of delete, ++, --, or the left-hand-side of an assignment operator! - [jsfun.c, jsinterp.c] args_getProperty etc. must use JS_GetInstancePrivate, not JS_GetPrivate, as the arguments object is exposed, and can be made a prototype of other objects that do not have private data, or private data that's a JSStackFrame*. Same goes for fun_getProperty, js_GetArgument, etc. - [jsfun.c, jsobj.c, jsstr.c] No need to specialize fun_delProperty and str_delProperty to help convince users and ECMA conformance tests that fun.length and str.length are direct properties of instances, instead of being delegated to Function.prototype.length and String.prototype.length. This special case is done universally in js_DeleteProperty for all SHARED and PERMANENT proto-properties. - [jshash.c] Sneaking this followup-fix for bug 69271 in: use JS_HASH_BITS rather than hardcoded 32. - [jsobj.c, jsscope.[ch]] Fix misnamed js_HashValue (it takes a jsid, so it is now js_HashId). - [jsscript.c] script_compile needs to call JS_InstanceOf, to ensure that obj is a Script object. |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |