Bug 1541641 - Emit JSOP_TOID for computed field keys. r=jorendorff

Differential Revision: https://phabricator.services.mozilla.com/D27549

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ashley Hauck 2019-04-24 18:02:54 +00:00
Родитель 03710e2fef
Коммит 395365c85a
2 изменённых файлов: 5 добавлений и 12 удалений

Просмотреть файл

@ -7992,6 +7992,11 @@ bool BytecodeEmitter::emitCreateFieldKeys(ListNode* obj) {
return false;
}
if (!emit1(JSOP_TOID)) {
// [stack] ARRAY KEY
return false;
}
if (!emitUint32Operand(JSOP_INITELEM_ARRAY, curFieldKeyIndex)) {
// [stack] ARRAY
return false;

Просмотреть файл

@ -594,18 +594,6 @@ skip script test262/language/statements/class/elements/private-derived-cls-indir
skip script test262/language/statements/class/elements/private-derived-cls-indirect-eval-err-contains-supercall-2.js
skip script test262/language/statements/class/elements/private-derived-cls-indirect-eval-err-contains-supercall.js
# https://bugzilla.mozilla.org/show_bug.cgi?id=1541641
skip script test262/language/expressions/class/elements/evaluation-error/computed-name-toprimitive-err.js
skip script test262/language/expressions/class/elements/evaluation-error/computed-name-toprimitive-returns-noncallable.js
skip script test262/language/expressions/class/elements/evaluation-error/computed-name-toprimitive-returns-nonobject.js
skip script test262/language/expressions/class/elements/evaluation-error/computed-name-tostring-err.js
skip script test262/language/expressions/class/elements/evaluation-error/computed-name-valueof-err.js
skip script test262/language/statements/class/elements/evaluation-error/computed-name-toprimitive-err.js
skip script test262/language/statements/class/elements/evaluation-error/computed-name-toprimitive-returns-noncallable.js
skip script test262/language/statements/class/elements/evaluation-error/computed-name-toprimitive-returns-nonobject.js
skip script test262/language/statements/class/elements/evaluation-error/computed-name-tostring-err.js
skip script test262/language/statements/class/elements/evaluation-error/computed-name-valueof-err.js
###########################################################
# Tests disabled due to issues in test262 importer script #