mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
auto merge of #1666 : ozten/servo/issue-506-add-basic-console, r=Ms2ger
Here is an attempt to fix Issue#506. I couldn't figure out how to do variadic arguments to `console.log`, but I did test calling `console.log('foo', 'bar', 'baz')` and it prints the first argument and doesn't error out, which is nice. window.console is not a web standards. I did the popular functions, but not some of the newer ones documented [on MDN](https://developer.mozilla.org/en-US/docs/Web/API/console). This PR will allow more pages to load properly, where developers have left in window.console calls.
This commit is contained in:
commit
1662e7a02f
7 changed files with 102 additions and 0 deletions
|
@ -136,6 +136,9 @@ DOMInterfaces = {
|
|||
'nativeType': 'ClientRectList',
|
||||
}],
|
||||
|
||||
'Console': {
|
||||
},
|
||||
|
||||
'CSS2Properties': {
|
||||
'nativeType': 'nsDOMCSSDeclaration',
|
||||
'prefable': True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue