Ensure that fast array objects are always extensible (#4557)
This patch helps to eliminate some extra checks from Array.prototype methods JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -12,12 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
var array = [$, Infinity]
|
||||
var array = [5.1, Infinity]
|
||||
Reflect.preventExtensions(array);
|
||||
|
||||
try {
|
||||
var $ = array.pop()
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e instanceof TypeError);
|
||||
}
|
||||
assert(array.pop() == Infinity);
|
||||
|
||||
Reference in New Issue
Block a user