esruby 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/esruby/build.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbee1ba80196514659dbc8cea54a5d7d97bb617c4046a9729e9be950294b3f97
|
4
|
+
data.tar.gz: cfe7eaf3fbadbf0cd2b088348a23db813501a751aca544a313077c531a5164cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ecc4ec227beced58b6154145435a27147db8ff593f886acc7ea4f03316fd920af2a1298e5d4a64899d7ad731d6672ce5653a5aa36e84899a49f4bcee6c87523
|
7
|
+
data.tar.gz: 7240f89dfa640a155a84de90a0d51440ce5db111a7a2f17023636c7f39113bfc3734e50b518c2e0f5d9c4d6444c8df5fe3c5369d8f3a6fdd9836f6f03603926a
|
data/README.md
CHANGED
@@ -38,6 +38,9 @@ to your `.bashrc` and `.profile`
|
|
38
38
|
# Binding with JS
|
39
39
|
Explore my [esruby-bind](https://github.com/robfors/esruby-bind) gem that binds the Ruby and JS environments together.
|
40
40
|
|
41
|
+
# Documentation
|
42
|
+
* `Kernel#exit` : returns execution to the JavaScript event loop. It will skip the rest of the Ruby code by raising and capturing an exception inherited from `Exception`. It will not shutdown the interpreter, therefore any future calls to the Ruby environment from JavaScript will function as expected.
|
43
|
+
|
41
44
|
# License
|
42
45
|
|
43
46
|
This project is distributed under the MIT License. See LICENSE for further details.
|
data/lib/esruby/build.rb
CHANGED
@@ -138,7 +138,7 @@ module ESRuby
|
|
138
138
|
RakeFileUtils.sh "#{mrbc} -B app -o #{build_directory}/app.c #{ruby_sources.join(" ")}"
|
139
139
|
RakeFileUtils.sh "emcc --bind #{cxx_include_argument} #{build_directory}/app.c -o #{build_directory}/app.o #{build_directory}/emscripten/lib/libmruby.a -lm #{js_arguments} #{optimization_argument} #{closure_argument} #{debug_argument} -s ALLOW_MEMORY_GROWTH=1"
|
140
140
|
RakeFileUtils.sh "emcc -std=c++11 --bind #{cxx_include_argument} #{gem_directory}/resources/cpp/main.cpp -o #{build_directory}/main.o #{build_directory}/emscripten/lib/libmruby.a -lm #{js_arguments} #{optimization_argument} #{closure_argument} #{debug_argument} -s ALLOW_MEMORY_GROWTH=1"
|
141
|
-
RakeFileUtils.sh "emcc --bind #{cxx_include_argument} -o #{build_directory}/output.js #{build_directory}/app.o #{build_directory}/main.o #{build_directory}/emscripten/lib/libmruby.a -lm #{js_arguments} #{optimization_argument} #{closure_argument} #{debug_argument} -s ALLOW_MEMORY_GROWTH=1"
|
141
|
+
RakeFileUtils.sh "emcc --bind #{cxx_include_argument} -o #{build_directory}/output.js #{build_directory}/app.o #{build_directory}/main.o #{build_directory}/emscripten/lib/libmruby.a -lm #{js_arguments} #{optimization_argument} #{closure_argument} #{debug_argument} -s ALLOW_MEMORY_GROWTH=1 -s WASM=0 -s DISABLE_EXCEPTION_CATCHING=0"
|
142
142
|
#if build.build_mode == 'production'
|
143
143
|
# ENV["EMCC_CLOSURE_ARGS"] = "--language_in=ECMASCRIPT6" #possibly allow setting output: --language_out=ECMASCRIPT6
|
144
144
|
# sh "java -jar #{PROJECT_DIRECTORY}/emsdk/emscripten/incoming/third_party/closure-compiler/compiler.jar --js #{build.absolute_build_directory}/output.js --js_output_file #{build.absolute_output}"
|