|
34 | 34 | # + e: enumerable |
35 | 35 | # + c: configurable |
36 | 36 | # + a: accessor (determined automatically, not necessary to give explicitly) |
| 37 | +# - autoLightfunc: if true (which is default), function property may be |
| 38 | +# automatically converted to a lightfunc if other automatic lightfunc |
| 39 | +# conversion criteria are met; use "autoLightfunc: false" to prevent |
| 40 | +# lightfunc conversion |
37 | 41 | # - May also have feature tags like "es6: true" to indicate property |
38 | 42 | # is related to a specific standard |
39 | 43 | # - To disable a property without removing its metadata, you can use |
|
61 | 65 | # - Pointer: |
62 | 66 | # - type: pointer |
63 | 67 | # - NOTE: not supported yet, type is reserved |
| 68 | +# - Lightfunc: |
| 69 | +# - type: lightfunc |
| 70 | +# - native: native function name |
| 71 | +# - magic: -128 to 127 |
| 72 | +# - length: 0 to 15 |
| 73 | +# - nargs: 0 to 14; or varargs: true |
| 74 | +# - varargs: if true, target has variable arguments |
64 | 75 | # - Reference to a built-in object: |
65 | 76 | # - type: object |
66 | 77 | # id: ID string of target object |
@@ -315,6 +326,7 @@ objects: |
315 | 326 | type: function |
316 | 327 | native: duk_bi_global_object_eval |
317 | 328 | length: 1 |
| 329 | + autoLightfunc: false # automatic lightfunc conversion clashes with internal implementation |
318 | 330 | - key: "parseInt" |
319 | 331 | value: |
320 | 332 | type: function |
@@ -2267,12 +2279,14 @@ objects: |
2267 | 2279 | native: duk_bi_thread_yield |
2268 | 2280 | length: 2 |
2269 | 2281 | duktape: true |
| 2282 | + autoLightfunc: false # automatic lightfunc conversion clashes with internal implementation |
2270 | 2283 | - key: "resume" |
2271 | 2284 | value: |
2272 | 2285 | type: function |
2273 | 2286 | native: duk_bi_thread_resume |
2274 | 2287 | length: 3 |
2275 | 2288 | duktape: true |
| 2289 | + autoLightfunc: false # automatic lightfunc conversion clashes with internal implementation |
2276 | 2290 | - key: "current" |
2277 | 2291 | value: |
2278 | 2292 | type: function |
|
0 commit comments