"undefined" error when assigning to property frozen on proto
See original GitHub issueit is throwing undefined
rather than something sensible
function
r = require('ses').makeSESRootRealm()
b = r.evaluate(`function a () {};a.bind = 1`)
// => Thrown: undefined
class
r = require('ses').makeSESRootRealm()
b = r.evaluate(`class a {};a.bind = 1`)
// => Thrown: undefined
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Javascript prototype method "Cannot set property"
The prototype property exists on functions, not on instantiated objects. var Person = new Object(); console.log(Person.prototype); // undefined var Person2 ...
Read more >Object.prototype.__proto__ - JavaScript - MDN Web Docs
A property access for __proto__ that eventually consults Object.prototype will find this property, but an access that does not consult Object.
Read more >How can I detect an undefined object property in JavaScript?
This, in turn, makes them prone to silent errors, shall you misspell the property altogether. const obj = { prop : undefined };...
Read more >Cannot Read Property of Undefined in JavaScript - Rollbar
The TypeError: Cannot read property of undefined is one of the most common type errors in JavaScript. It occurs when a property is...
Read more >Object.defineProperty() - Javascript - CodeProject Reference
The function will receive as only argument the new value being assigned to the property. Defaults to undefined . Bear in mind that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
just want to clarify, this is the intended focus of this issue
I’m neutral on the list of things that get patched, but i agree that having at least an option to enable this would be great.