mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 22:15:24 +02:00
Merge pull request #1578 from Aladdin-ADD/patch-1
fix: comparing typeof expression
This commit is contained in:
commit
53eebf1e43
@ -73,7 +73,7 @@ function Section(parentSection, id, name) {
|
|||||||
this.toHTML = function(options) {
|
this.toHTML = function(options) {
|
||||||
var defaultOptions = {header: false, renderSubsections: true};
|
var defaultOptions = {header: false, renderSubsections: true};
|
||||||
|
|
||||||
if (typeof options === undefined) {
|
if (typeof options === "undefined") {
|
||||||
options = defaultOptions;
|
options = defaultOptions;
|
||||||
} else {
|
} else {
|
||||||
options = $.extend(defaultOptions, options);
|
options = $.extend(defaultOptions, options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user