michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: var gTestfile = 'object-literal-accessor-property-name.js'; michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 715682; michael@0: var summary = michael@0: "Permit numbers and strings containing numbers as accessor property names"; michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: michael@0: ({ get "0"() { } }); michael@0: ({ get 0() { } }); michael@0: ({ get 0.0() { } }); michael@0: ({ get 0.() { } }); michael@0: ({ get 1.() { } }); michael@0: ({ get 5.2322341234123() { } }); michael@0: michael@0: ({ set "0"(q) { } }); michael@0: ({ set 0(q) { } }); michael@0: ({ set 0.0(q) { } }); michael@0: ({ set 0.(q) { } }); michael@0: ({ set 1.(q) { } }); michael@0: ({ set 5.2322341234123(q) { } }); michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: michael@0: reportCompare(true, true);