Skip to content

Instantly share code, notes, and snippets.

"_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 \

http.cpp

Can change for 60:

  1. state->recvbuf = static_cast<char*>(JS_malloc(...))
  2. tmp = static_cast<char*>(JS_realloc(...))

main.cpp

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

Lower Case examples

Python 3.7.5 (default, Nov  1 2019, 02:16:32)
[Clang 11.0.0 (clang-1100.0.33.8)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import json
>>> json.dumps("Ä".lower())
'"\\u00e4"'
js> JSON.stringify("å")
"\"\xC3\xA5\""
js> JSON.stringify("Å")
"\"\xC3\x85\""
js> JSON.stringify("Å".toLowerCase())
"\"\xE3\x85\""

There are three operations we care about:

  1. Show me all soft-deleted databases with associated metadata
  2. Undelete a soft-deleted database
  3. Actually delete a soft-deleted database

Show Soft Deleted Dbs

  • GET /_deleted_dbs
% 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
void
show_stack(int sig)
{
void* frames[64];
size_t size;
const int8_t* dbg_info = (int8_t*) getenv("EASTON_DEBUG_INFO");
if(dbg_info != NULL) {
fprintf(stderr, "Error: Signal %d\n", sig);
} else {