blob: a94217e21969b079c886fe61a2561561c28ff45f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
'use strict';
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 19.1.2.5
description: >
Frozen object contains symbol properties.
flags: [onlyStrict]
features: [Symbol]
---*/
var sym = Symbol("66");
var obj = {};
obj[sym] = 1;
Object.freeze(obj);
assert.throws(TypeError, function() {
obj[sym] = 2;
});
reportCompare(0, 0);
|