mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Throw type error when calling DOM constructor without new.
This commit is contained in:
parent
43f5b4899b
commit
56a8237ef4
3 changed files with 45 additions and 15 deletions
|
@ -637,3 +637,7 @@ impl AsCCharPtrPtr for [u8] {
|
|||
self as *const [u8] as *const c_char
|
||||
}
|
||||
}
|
||||
|
||||
pub unsafe fn callargs_is_constructing(args: &CallArgs) -> bool {
|
||||
(*args.argv_.offset(-1)).is_magic()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue