Skip to content
#

interpreter

Here are 2,951 public repositories matching this topic...

Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single 1MB file!

  • Updated Sep 29, 2020
  • Red
boa
jasonwilliams
jasonwilliams commented Sep 28, 2020
var obj = {};
var s = Symbol('1');
Object.defineProperty(obj, s);

Outputs: Uncaught "TypeError": "can't convert symbol to string"

The problem starts here:
https://github.com/boa-dev/boa/blob/master/boa/src/builtins/object/mod.rs#L101 we try to coarce the key into a string type. We shouldn't need to do this as Property's already support Symbols as keys. We should pass the arg

root

Improve this page

Add a description, image, and links to the interpreter topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the interpreter topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.