mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Add missing realm.element.
This commit is contained in:
16
test/test.js
16
test/test.js
@@ -659,7 +659,7 @@
|
||||
' });',
|
||||
'',
|
||||
' return object;',
|
||||
'}())'
|
||||
'}());'
|
||||
].join('\n')));
|
||||
});
|
||||
|
||||
@@ -673,11 +673,12 @@
|
||||
|
||||
var idoc = (idoc = iframe.contentDocument || iframe.contentWindow).document || idoc;
|
||||
idoc.write([
|
||||
'<html>',
|
||||
'<body>',
|
||||
'<script>',
|
||||
'var _ = parent._;',
|
||||
'',
|
||||
' var noop = function() {},',
|
||||
' root = this;',
|
||||
'var _ = parent._,',
|
||||
' noop = function() {},',
|
||||
' root = this;',
|
||||
'',
|
||||
'var object = {',
|
||||
" 'ArrayBuffer': root.ArrayBuffer,",
|
||||
@@ -686,6 +687,7 @@
|
||||
" 'arrayBuffer': root.ArrayBuffer ? new root.ArrayBuffer : undefined,",
|
||||
" 'boolean': Object(false),",
|
||||
" 'date': new Date,",
|
||||
" 'element': document.body,",
|
||||
" 'errors': [new Error, new EvalError, new RangeError, new ReferenceError, new SyntaxError, new TypeError, new URIError],",
|
||||
" 'function': noop,",
|
||||
" 'map': root.Map ? new root.Map : undefined,",
|
||||
@@ -710,7 +712,9 @@
|
||||
'});',
|
||||
'',
|
||||
'_.assign(_._realm, object);',
|
||||
'<\/script>'
|
||||
'</script>',
|
||||
'</body>',
|
||||
'</html>'
|
||||
].join('\n'));
|
||||
|
||||
idoc.close();
|
||||
|
||||
Reference in New Issue
Block a user