Comments (3)
Update: The Lua code string.char(65) seems like it will work for my purposes, but I'm still hoping to learn how to call String.fromCharCode(65).
from moonshine.
Hi,
Cheers for this. You're right, it is a bug. I'll look into a fix and get back to you tomorrow.
Paul.
from moonshine.
It wasn't adding static methods to constructor functions. This has now been fixed in 1ee194a.
As fromCharCode()
is a static method, the best way to use it would be:
String.fromCharCode(65)
As I'm sure you're aware, string.char(65)
was working because it's part of the Lua standard library in the VM and not part of the DOMAPI extension.
from moonshine.
Related Issues (20)
- move license to something more permissive HOT 16
- website offline? HOT 3
- can I use moonshine with node.js? HOT 8
- about lua coroutine HOT 1
- Moonshine prevents load of d3.js
- init.lua not loaded HOT 2
- distil can't handle spaces in filename HOT 2
- Support for Lua modules HOT 5
- nil addition behaves like js instead of lua
- Lua 5.2 support?
- string.sub broken for j=0 or j<i HOT 1
- 'use strict' and var shine = shine || {}; HOT 1
- Passing JSON Directly Yields Error HOT 3
- lua distillery
- lib-date tests assume local timezone is UTC
- moonshinejs.org/editor/ does not compile, CORS issue with distillery.moonshinejs.org
- How to convert LUA Table to javascript object
- 'luac' is not recognized as an internal or external command
- Incompatibility with node 12
- Debug and editor examples not running
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonshine.