This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 64
[Buffer] length is not a readonly attribute #172
Comments
haoxli
changed the title
[Buffer] length is not readonly attribute
[Buffer] length is a not readonly attribute
Sep 12, 2016
haoxli
changed the title
[Buffer] length is a not readonly attribute
[Buffer] length is not a readonly attribute
Sep 12, 2016
this is probably a limitation of jerryscript, there's not a way for us to set a read-only attribute on any js objects, at least I am not aware of any, @brianjjones? |
Quick grep over JrS codebase:
(read-only should be "not writable" in javascript-speak). |
@pfalcon thanks for pointing that out, but ecma_ are internal apis, not the public apis we can use, we should file a feature request to have a jerry_ api to allow setting the property |
grgustaf
added a commit
to grgustaf/zephyr.js-1
that referenced
this issue
Dec 23, 2016
Fixes issue intel#172. Signed-off-by: Geoff Gustafson <[email protected]>
Fixed by PR #576. This makes test-buffer.js pass all 18/18 subtests. |
BTW @jimmy-huang and @pfalcon, I found that this and more can be done using jerry_define_own_property. |
grgustaf
added a commit
to grgustaf/zephyr.js-1
that referenced
this issue
Jan 4, 2017
Fixes issue intel#172. Signed-off-by: Geoff Gustafson <[email protected]>
grgustaf
added a commit
that referenced
this issue
Jan 4, 2017
Fixes issue #172. Signed-off-by: Geoff Gustafson <[email protected]>
This issue cannot reproduce on both Arduino 101 and FRDM-K64F with commit 2345f96. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
readonly attribute unsigned long length;
In buffer.md, the length of Buffer should be readonly, but actually it can be modified.
The print result is 9, not the expected 8.
The text was updated successfully, but these errors were encountered: