We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b3def commit 4265203Copy full SHA for 4265203
src/types/make-maybe-test.js
@@ -7,15 +7,12 @@ var canReflect = require("can-reflect");
7
8
QUnit.module("can-query-logic/types/make-maybe")
9
10
-class DateStringSet {
11
- constructor(value) {
12
- this.value = value;
13
- }
14
- // used to convert to a number
15
- valueOf() {
16
- return this.value == null ? this.value : new Date(this.value).getTime();
17
+function DateStringSet(value) {
+ this.value = value;
18
}
+DateStringSet.prototype.valueOf = function() {
+ return this.value == null ? this.value : new Date(this.value).getTime();
+};
19
20
var ComparisonSet = function(value) {
21
this.value = value;
0 commit comments