mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
refactor: remove mock-fs from dev dependency
This commit is contained in:
+2
-2
@@ -48,7 +48,7 @@ TokenizationError.prototype.constructor = TokenizationError
|
||||
export class ParseError extends LiquidError {
|
||||
constructor (err, token) {
|
||||
super(err, token)
|
||||
_.assign(this, err)
|
||||
this.message = err.message
|
||||
super.captureStackTrace(this)
|
||||
}
|
||||
}
|
||||
@@ -58,7 +58,7 @@ ParseError.prototype.constructor = ParseError
|
||||
export class RenderError extends LiquidError {
|
||||
constructor (err, tpl) {
|
||||
super(err, tpl.token)
|
||||
_.assign(this, err)
|
||||
this.message = err.message
|
||||
super.captureStackTrace(this)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,8 +35,6 @@ const _date = {
|
||||
return num + d.getDate()
|
||||
},
|
||||
|
||||
// Startday is an integer of which day to start the week measuring from
|
||||
// TODO: that comment was retarted. fix it.
|
||||
getWeekOfYear: function (d, startDay) {
|
||||
// Skip to startDay of this week
|
||||
const now = this.getDayOfYear(d) + (startDay - d.getDay())
|
||||
|
||||
Reference in New Issue
Block a user