Commit graph

8 commits

Author SHA1 Message Date
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
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
7ceb30bdf1 js-runtime: Add constructor calling capability (new operator on Js types) 2022-07-08 18:14:50 -07:00
iddev5
d10ab25c5d js-runtime: Upload source code from upstream 2022-07-07 04:35:19 -07:00