en there is a toJSON method but it does not have the [Default] extended attribute');

    test(function() {
        var context = new IdlArray();
        context.add_idls("interface A : B { DOMString toJSON(); };");
        context.add_idls("interface B { [Default] object toJSON(); };");
        var r = context.members.A.default_to_json_operation();
        assert_equals(r, null);
    }, 'should return null when there is a toJSON method but it does not have the [Default] extended attribute even if this exte