Assignment to wrapper objects in strict mode

Andreas Rossberg rossberg at
Wed May 28 04:15:48 PDT 2014

Apparently, there has been a semantic change between ES5 and ES6
regarding assignment to wrapper objects in strict mode. That is,

  'use strict'; "".x = 0

would throw in ES5, but AFAICS, no longer does in ES6. Was this change
discussed? What is the rationale?

(FWIW, current implementations disagree about this: e.g., V8 and SM
don't throw, JSC does.)


More information about the es-discuss mailing list