You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ using the Python engine to provide the Javascript host environment.
8
8
9
9
We feature JavaScript Array and Object methods implemented on Python List and Dictionaries using the cPython C API, and the inverse using the Mozilla Firefox Spidermonkey JavaScript C++ API.
10
10
11
-
This product is in an intermediate stage, approximately 95% to MVP as of March 2024. It is under active development by [Distributive](https://distributive.network/).
11
+
This product is in an advanced stage, approximately 95% to MVP as of March 2024. It is under active development by [Distributive](https://distributive.network/).
12
+
12
13
External contributions and feedback are welcome and encouraged.
13
14
14
15
### tl;dr
@@ -250,6 +251,7 @@ generated by enumerating the global variable in the current SpiderMonkey context
250
251
## Built-In Functions
251
252
252
253
See definitions in [python/pythonmonkey/global.d.ts](https://github.com/Distributive-Network/PythonMonkey/blob/main/python/pythonmonkey/global.d.ts).
254
+
Including:
253
255
254
256
-`console`
255
257
-`atob`
@@ -307,11 +309,11 @@ JavaScript Array and Object methods are implemented on Python List and Dictionar
307
309
308
310
| JavaScript Type | Python Type |
309
311
|:---------------------|:----------------|
310
-
| string | String
312
+
| string |pythonmonkey.JSStringProxy (String)
311
313
| number | Float
312
314
| bigint | pythonmonkey.bigint (Integer)
313
315
| boolean | Bool
314
-
| function | Function
316
+
| function |pythonmonkey.JSFunctionProxy || pythonmonkey.JSMethodProxy (Function|| Method)
315
317
|object- most | pythonmonkey.JSObjectProxy (Dict)
316
318
|object- Date | datetime
317
319
|object- Array | pythonmonkey.JSArrayProxy (List)
@@ -386,10 +388,10 @@ in Python. Simply decorate a Dict named `exports` inside a file with a `.py` ext
386
388
loaded by `require()`--in either JavaScript or Python.
387
389
388
390
### Program Module
389
-
The program module, or main module, is a special module in CommonJS. In a program module,
391
+
The program module, or main module, is a special module in CommonJS. In a program module:
390
392
- variables defined in the outermost scope are properties of `globalThis`
391
393
- returning from the outermost scope is a syntax error
392
-
- the `arguments` variable in an Array-like object which holds your program's argument vector
394
+
- the `arguments` variable in an Array which holds your program's argument vector
If you are having trouble with the CommonJS require function, set environment variable `DEBUG='ctx-module*'`and you can see the filenames it tries to laod.
421
+
If you are having trouble with the CommonJS require function, set environment variable `DEBUG='ctx-module*'`and you can see the filenames it tries to load.
0 commit comments