iddev5
b74cfa838e
js-runtime: Implement `fn format()` for js.Value for easier debugging
...
and logging
2022-07-09 14:36:43 -07:00
iddev5
852278ebe7
js-runtime: Add Function.paramCount to get the number of parameters
2022-07-09 14:36:43 -07:00
iddev5
e8f5ca9117
js-runtime: Add Object.attributeCount to get the number of user added
...
attributes to that object
2022-07-09 14:36:43 -07:00
iddev5
1919595adc
js-runtime: Use the same tag for both func_js and func_zig
...
There is no technical different between the ways they are used. So its
better to merge them.
This commit further removes the internal ValueTag which worked under
Tag. On doing that tag type ``.ref`` has been renamed to ``.object``.
2022-07-09 14:36:43 -07:00
iddev5
3b00b478ce
js: Implement Value.instanceOf method which performs Js' `instanceof`
...
check
2022-07-09 14:36:43 -07:00
iddev5
c587350c71
js-runtime: Support js functions in zig.readObject
2022-07-09 14:36:43 -07:00
iddev5
e67fdd75e3
js-runtime: Add Value.eql function, equivalent to Js's === operator
2022-07-09 14:36:43 -07:00
iddev5
8ec61055e3
js-runtime: Create String view type and renamed Value.value() to
...
Value.view() without allocator param
2022-07-08 18:14:50 -07:00
iddev5
51c702aebc
js-runtime: Have value_map as a map instead of array to save memory
2022-07-08 18:14:50 -07:00
iddev5
7ceb30bdf1
js-runtime: Add constructor calling capability (new operator on Js types)
2022-07-08 18:14:50 -07:00
iddev5
97e5c57bc8
js-runtime: Move function call logic to a common function
2022-07-08 18:14:50 -07:00
iddev5
77a6e0605d
js-runtime: Add license information
2022-07-07 04:35:19 -07:00
iddev5
d10ab25c5d
js-runtime: Upload source code from upstream
2022-07-07 04:35:19 -07:00