| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
(again. ouch.)
|
| |
|
|
|
|
|
|
|
| |
Mostly a proof of concept. Just bubble it unconditionally for now
and never prevent default.
Also, fix fromJSFunction by Dup'ing its closure JSValue.
|
| |
|
|
|
|
|
|
| |
* fromJSFunction: dup the value, so that it cannot go out of context.
* setOpaque no longer calls GC_ref, so no need for it to be generic
instead of just taking a pointer.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
mostly for symmetry with real objects
|
|
|
|
|
|
|
|
|
| |
jssetprop just adds the set_property exotic function.
ActionMap is now editable from JS; the setter is implemented in the
same way as bindPagerKey/bindLineKey. (In fact, now those two just
call the setter.) But this is still rather inefficient and subject
to change.
|
|
|
|
|
|
|
| |
It was unused.
(Or more precisely, indefinitely not implemented.
TODO: implement it one day.)
|
| |
|
| |
|
|
|
|
|
|
|
| |
Split out parts of the JS module, because it was starting to confuse
the compiler a little.
(Peakmem is back at 750M. Interesting.)
|
|
|
|
| |
Accept here what the TOML config parser would accept too.
|
|
|
|
|
|
|
| |
Also, make ActionMap use getters/hasprop instead of a table copy.
peakmem remains up +200M at 950M after commit
9991bd3393483158ab0d1b9d995f695dee3c65dc. :(
|
|
|
|
|
|
|
| |
This used to be possible until I moved everything under separate
headers to their respective objects.
Now it works again, mostly; modification of some attributes is still
missing.
|
|
|
|
|
|
|
|
| |
This makes not creating separate reference types for SameObject
attributes possible.
Also add a fromJS2 "hook" to allow defining fromJS behavior in modules
other than javascript.
|
|
|
|
| |
for better compatibility with curl-impersonate
|
|
|
|
| |
skipBlanks should not consume newlines.
|
|
|
|
|
| |
* simplify ActionMap reading
* introduce separate case for Table
|
| |
|
|
|
|
|
| |
* Increase line counter on newline in array & inline table parsing
* Fix broken inline table parsing
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove some unused properties from objects
* Un-extern JSFunctionList
* Remove js/javascript dependency from regex (the wrapper functions
were rather pointless)
* Remove setProperty (only toJS(Table) used it, but there we have to
use defineProperty instead.)
* Accordingly, use definePropertyCWE in toJS(Table)
* Simplify fromJSTable (replace pointer arithmetic with UncheckedArray)
* Reduce implicit `result' usage
|
|
|
|
| |
for clarity
|
|
|
|
|
|
|
| |
Now that we have established that window *can* be nil.
(Though the document.location window null check is probably
unnecessary, because it is only called from scripts... but better
safe than sorry.)
|
|
|
|
|
|
|
|
| |
Use current document's URL if window && window.document, otherwise
default to about:blank.
Also, it seems that passing nil to window is really necessary in some
cases, so remove notes indicating otherwise.
|
|
|
|
|
|
|
|
|
| |
Walking the prototype chain for every single type just so we can define
the few LegacyUnforgeable properties we need is not the greatest idea.
Instead, we now merge LegacyUnforgeable lists with those of ancestor
prototypes, which reduces the entire ceremony to a single `get'
from the global table.
|
| |
|
| |
|
|
|
|
| |
s/mailcap/mime.types/g
|
|
|
|
| |
oops
|
|
|
|
| |
This way we do not need the ugly getProperty call.
|
|
|
|
|
|
|
|
| |
Add jsuffget, jsuffunc for setting LegacyUnforgeable on functions.
Misc fixes:
* define LegacyUnforgeable properties for native object shims
* replace some macros with templates
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Events: just implement the interfaces, no events are triggered yet.
JS changes:
* add LegacyUnforgeable
* make consts enumerable
* fix crash in isInstanceOf
* fix destructor warnings
* refactor registerType
As a result, peakmem is now 1G+ on 1.6.14. It stays ~750M on 2.0.0. Hmm.
Well, better upgrade to 2.0.0 I guess.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Now pages (once again) do not break when a meta charset tag is
defined. Hooray!
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 2
|
| |
|
| |
|
|
|
|
| |
Operation "modularize Chawan somewhat" part 1
|
|
|
|
| |
Not isAscii means we cannot convert to char. Oops.
|
| |
|
| |
|
|
|
|
|
| |
Make mime.types behavior consistent with mailcap: that is, the *first*
match counts.
|
|
|
|
| |
It's not quite the same thing :P
|