Skip to content

ChakraCore allows writing to a non-writable, non-configurable property through Annex B 3.3 edge case #2828

@littledan

Description

@littledan

Test case:

Object.defineProperty(this, 'f', {})
eval('{function f() {}}')
print(Object.getOwnPropertyDescriptor(this, 'f').value)

ChakraCore outputs the function, whereas three other engines output undefined. ChakraCore ignored the fact that the property was non-writable and non-configurable to get this output.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions