Re: standardizing Error.stack or equivalent

2014-03-28 Thread Mark S. Miller
Hi John, supposedly https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-dynamic-javascript and http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl document the emerging de facto std for providing this name to the existing API.

Re: standardizing Error.stack or equivalent

2014-03-28 Thread John Barton
Notice that the eval stack trace is not very useful in the common case that the buffer is more complex than a single line and the eval is called more than once. For eval, new Function(), document.write(script), document.appendChild(script), and System.module() successful debugging -- and thus

Re: standardizing Error.stack or equivalent

2014-03-28 Thread Sebastian Zartner
Hi John, supposedly https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-dynamic-javascript and http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl document the emerging de facto std for providing this name to the existing

Re: [[Set]] and inherited readonly data properties

2014-03-28 Thread Andrea Giammarchi
For the sake of examples, I honestly find current V8 hack, tested in node.js inconsistent, kinda pointless, and quite disturbing, with or without strict code. ```javascript function Class(value) { this.value = value; } Object.defineProperties(Class.prototype, { value: {value: null},

Re: [[Set]] and inherited readonly data properties

2014-03-28 Thread Andrea Giammarchi
actually, if the value is passed, the `B` constructor will throw, but not in `A` Properties that has been directly assigned have no reason to be specified as default in the prototype, if the constructor needs to directly assign them ... right? ```javascript function A(value) { this.value =