Can change for 60:
- state->recvbuf = static_cast<char*>(JS_malloc(...))
- tmp = static_cast<char*>(JS_realloc(...))
main.cpp
| * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP | |
| * frame #0: 0x00007fff6c1a2f32 libsystem_kernel.dylib`__semwait_signal + 10 | |
| frame #1: 0x00007fff6c12e914 libsystem_c.dylib`nanosleep + 199 | |
| frame #2: 0x000000010a7792e2 fdbserver`___lldb_unnamed_symbol14064$$fdbserver + 386 | |
| frame #3: 0x000000010a781388 fdbserver`___lldb_unnamed_symbol14115$$fdbserver + 168 | |
| frame #4: 0x000000010a77b5f9 fdbserver`___lldb_unnamed_symbol14093$$fdbserver + 105 | |
| frame #5: 0x000000010a77b367 fdbserver`___lldb_unnamed_symbol14090$$fdbserver + 151 | |
| frame #6: 0x000000010a761ee8 fdbserver`___lldb_unnamed_symbol13974$$fdbserver + 472 | |
| frame #7: 0x000000010a773b7e fdbserver`___lldb_unnamed_symbol14037$$fdbserver + 16046 | |
| frame #8: 0x000000010a765d29 fdbserver`___lldb_unnamed_symbol13991$$fdbserver + 889 |
| "_moz_arena_malloc", referenced from: | |
| js_arena_malloc(unsigned long, unsigned long) in utf8.o | |
| js_arena_malloc(unsigned long, unsigned long) in util.o |
| $ brew install yasm [email protected] protobuf [email protected] boost | |
| $ mkdir -p ~/tmp/spidermonkey && cd ~/tmp/spidermonkey | |
| $ wget http://ftp.mozilla.org/pub/firefox/releases/60.3.0esr/source/firefox-60.3.0esr.source.tar.xz | |
| $ tar -xf firefox-60.3.0esr.source.tar.xz | |
| $ cd firefox-60.3.0/js/src | |
| $ mkdir obj | |
| $ cd obj | |
| $ CXXFLAGS=-stdlib=libc++ ../configure \ | |
| --disable-ctypes \ | |
| --disable-ion \ |
| test/javascript/tests/all_docs.js warning: unreachable code after return statement | |
| warning: unreachable code after return statement | |
| warning: unreachable code after return statement | |
| ported to elixir |
js> JSON.stringify("å")
"\"\xC3\xA5\""
js> JSON.stringify("Å")
"\"\xC3\x85\""
js> JSON.stringify("Å".toLowerCase())
"\"\xE3\x85\""| % Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| % use this file except in compliance with the License. You may obtain a copy of | |
| % the License at | |
| % | |
| % http://www.apache.org/licenses/LICENSE-2.0 | |
| % | |
| % Unless required by applicable law or agreed to in writing, software | |
| % distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | |
| % WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | |
| % License for the specific language governing permissions and limitations under |
| F = fun() -> | |
| lists:foreach(fun(_) -> | |
| spawn_link(fun() -> | |
| timer:sleep(60000) | |
| end) | |
| end, lists:seq(1, 10000)) | |
| end, | |
| timer:tc(F). |